package com.example.demo1.service;

import com.example.demo1.pojo.Article;
import com.example.demo1.pojo.PageBean;
import org.springframework.web.multipart.MultipartFile;

public interface ArticleService {

    //新增文章
    Integer add(Article article);

    //条件分页列表查询
    //PageBean<Article> list(Integer pageNum, Integer pageSize, Integer categoryId, String state);
    PageBean<Article> list(Integer pageNum, Integer pageSize, Integer categoryId, String state, String content);

    //接受图片
    String upload(MultipartFile file, Integer id);

    //更新图片
    Integer update(Article article);

    //删除文章
    void deleteById(Integer id);
}
